package com.hf.buildtb.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * BiEmployee entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="BI_Employee"
    ,schema="dbo"
    ,catalog="BIDB"
)

public class BiEmployee  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = -4408914744207728141L;
	private String empId;
     private String empName;
     private String gender;
     private String email;
     private String idCard;
     private Timestamp birth;
     private String phone;
     private String address;
     private BiDepartment biDepartment;
     private String teamId;
     private String teamName;
     private Boolean isValid;
     private Boolean loginable;
     private String gradeId;
     private String py;
     private String wb;
     private Timestamp hireDate;
     private String hisId;
     private String hisName;


    // Constructors

    /** default constructor */
    public BiEmployee() {
    }

	/** minimal constructor */
    public BiEmployee(String empId, String empName, String gender, String idCard, String depId, String depName, Boolean isValid, Boolean loginable, String gradeId, Timestamp hireDate) {
        this.empId = empId;
        this.empName = empName;
        this.gender = gender;
        this.idCard = idCard;
 
        this.isValid = isValid;
        this.loginable = loginable;
        this.gradeId = gradeId;
        this.hireDate = hireDate;
    }
    
    /** full constructor */
    public BiEmployee(String empId, String empName, String gender, String email, String idCard, Timestamp birth, String phone, String address, String depId, String depName, String teamId, String teamName, Boolean isValid, Boolean loginable, String gradeId, String py, String wb, Timestamp hireDate, String hisId, String hisName) {
        this.empId = empId;
        this.empName = empName;
        this.gender = gender;
        this.email = email;
        this.idCard = idCard;
        this.birth = birth;
        this.phone = phone;
        this.address = address;
       
        this.teamId = teamId;
        this.teamName = teamName;
        this.isValid = isValid;
        this.loginable = loginable;
        this.gradeId = gradeId;
        this.py = py;
        this.wb = wb;
        this.hireDate = hireDate;
        this.hisId = hisId;
        this.hisName = hisName;
    }

   
    // Property accessors
    @Id 
    
    @Column(name="empId", unique=true, nullable=false, length=12)

    public String getEmpId() {
        return this.empId;
    }
    
    public void setEmpId(String empId) {
        this.empId = empId;
    }
    
    @Column(name="empName", nullable=false, length=64)

    public String getEmpName() {
        return this.empName;
    }
    
    public void setEmpName(String empName) {
        this.empName = empName;
    }
    
    @Column(name="gender", nullable=false, length=10)

    public String getGender() {
        return this.gender;
    }
    
    public void setGender(String gender) {
        this.gender = gender;
    }
    
    @Column(name="email", length=64)

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    @Column(name="IdCard", nullable=false, length=24)

    public String getIdCard() {
        return this.idCard;
    }
    
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
    
    @Column(name="birth", length=23)

    public Timestamp getBirth() {
        return this.birth;
    }
    
    public void setBirth(Timestamp birth) {
        this.birth = birth;
    }
    
    @Column(name="phone", length=24)

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    @Column(name="address", length=24)

    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
   
    public String getTeamId() {
        return this.teamId;
    }
    
    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }
    
    @Column(name="teamName", length=64)

    public String getTeamName() {
        return this.teamName;
    }
    
    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }
    
    @Column(name="isValid", nullable=false)

    public Boolean getIsValid() {
        return this.isValid;
    }
    
    public void setIsValid(Boolean isValid) {
        this.isValid = isValid;
    }
    
    @Column(name="loginable", nullable=false)

    public Boolean getLoginable() {
        return this.loginable;
    }
    
    public void setLoginable(Boolean loginable) {
        this.loginable = loginable;
    }
    
    @Column(name="gradeId", nullable=false, length=4)

    public String getGradeId() {
        return this.gradeId;
    }
    
    public void setGradeId(String gradeId) {
        this.gradeId = gradeId;
    }
    
    @Column(name="py", length=24)

    public String getPy() {
        return this.py;
    }
    
    public void setPy(String py) {
        this.py = py;
    }
    
    @Column(name="wb", length=23)

    public String getWb() {
        return this.wb;
    }
    
    public void setWb(String wb) {
        this.wb = wb;
    }
    
    @Column(name="hireDate", nullable=false, length=23)

    public Timestamp getHireDate() {
        return this.hireDate;
    }
    
    public void setHireDate(Timestamp hireDate) {
        this.hireDate = hireDate;
    }
    
    @Column(name="HisId", length=32)

    public String getHisId() {
        return this.hisId;
    }
    
    public void setHisId(String hisId) {
        this.hisId = hisId;
    }
    
    @Column(name="HisName", length=64)

    public String getHisName() {
        return this.hisName;
    }
    
    public void setHisName(String hisName) {
        this.hisName = hisName;
    }
   








}